package com.ymttest.database.sharding.db.sharding.model;

import java.math.BigDecimal;
import java.util.Date;

public class MainOrderPo {
    /**
     * main_order_id BIGINT(19) 必填<br>
     * 主单号
     */
    private Long mainOrderId;

    /**
     * stock_status INTEGER(10) 默认值[0] 必填<br>
     * 库存状态
     */
    private Integer stockStatus;

    /**
     * coupon_status INTEGER(10) 默认值[0] 必填<br>
     * 优惠券状态
     */
    private Integer couponStatus;

    /**
     * card_status INTEGER(10) 默认值[0] 必填<br>
     * 预付卡状态
     */
    private Integer cardStatus;
    
    /**
     * rebate_status INTEGER(11) 默认值[0] 必填<br>
     * 扣返点状态
     */
    private Integer rebateStatus;

    /**
     * sync_status INTEGER(10) 默认值[0] 必填<br>
     * 指令同步状态
     */
    private Integer syncStatus;
    
    /**
     * pay_deduct_amount BigDecimal(18) 默认值[0] 必填<br>
     * app内立减支付金额
     */
    private BigDecimal payDeductAmount;

    /**
     * add_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 新增日期
     */
    private Date addTime;

    /**
     * update_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 更新日期
     */
    private Date updateTime;
    
    /**
     * 代下单id
     *
     */
    private long proxyOrderId;
    
    /**
     * 用户id
     *
     */
    private long userId;
    
    /**
     * 第三方商城订单id（分期乐）
     *
     */
    private String thirdMallOrderId;
    
    /**
     * 神器支付通道，null:未知，1：HipoPay，2：盛付通
     */
    private Integer payChannelType;
    
    /**
     * 扣积分状态
     */
    private Integer integralStatus;
    
    /**
     * 下单抵扣总积分
     */
    private Integer integral;

    /**
     * 批量扣中免vip购买资格码状态
     */
    private Integer cdfVipCodeStatus;

    /**
     * main_order_id BIGINT(19) 必填<br>
     * 获得 主单号
     */
    public Long getMainOrderId() {
        return mainOrderId;
    }

    /**
     * main_order_id BIGINT(19) 必填<br>
     * 设置 主单号
     */
    public void setMainOrderId(Long mainOrderId) {
        this.mainOrderId = mainOrderId;
    }

    /**
     * stock_status INTEGER(10) 默认值[0] 必填<br>
     * 获得 库存状态
     */
    public Integer getStockStatus() {
        return stockStatus;
    }

    /**
     * stock_status INTEGER(10) 默认值[0] 必填<br>
     * 设置 库存状态
     */
    public void setStockStatus(Integer stockStatus) {
        this.stockStatus = stockStatus;
    }

    /**
     * coupon_status INTEGER(10) 默认值[0] 必填<br>
     * 获得 优惠券状态
     */
    public Integer getCouponStatus() {
        return couponStatus;
    }

    /**
     * coupon_status INTEGER(10) 默认值[0] 必填<br>
     * 设置 优惠券状态
     */
    public void setCouponStatus(Integer couponStatus) {
        this.couponStatus = couponStatus;
    }

    /**
     * card_status INTEGER(10) 默认值[0] 必填<br>
     * 获得 预付卡状态
     */
    public Integer getCardStatus() {
        return cardStatus;
    }

    /**
     * card_status INTEGER(10) 默认值[0] 必填<br>
     * 设置 预付卡状态
     */
    public void setCardStatus(Integer cardStatus) {
        this.cardStatus = cardStatus;
    }

    /**
     * sync_status INTEGER(10) 默认值[0] 必填<br>
     * 获得 指令同步状态
     */
    public Integer getSyncStatus() {
        return syncStatus;
    }

    /**
     * sync_status INTEGER(10) 默认值[0] 必填<br>
     * 设置 指令同步状态
     */
    public void setSyncStatus(Integer syncStatus) {
        this.syncStatus = syncStatus;
    }

    /**
     * add_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 获得 新增日期
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * add_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 设置 新增日期
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * update_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 获得 更新日期
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * update_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 设置 更新日期
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    /**
     * pay_deduct_amount BigDecimal(18) 默认值[0] 必填<br>
     * 获得app内立减支付金额
     */
    public BigDecimal getPayDeductAmount() {
		return payDeductAmount;
	}

	public void setPayDeductAmount(BigDecimal payDeductAmount) {
		this.payDeductAmount = payDeductAmount;
	}

	public long getProxyOrderId() {
		return proxyOrderId;
	}

	public void setProxyOrderId(long proxyOrderId) {
		this.proxyOrderId = proxyOrderId;
	}

	public Integer getRebateStatus() {
		return rebateStatus;
	}

	public void setRebateStatus(Integer rebateStatus) {
		this.rebateStatus = rebateStatus;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getThirdMallOrderId() {
		return thirdMallOrderId;
	}

	public void setThirdMallOrderId(String thirdMallOrderId) {
		this.thirdMallOrderId = thirdMallOrderId;
	}

	public Integer getPayChannelType() {
		return payChannelType;
	}

	public void setPayChannelType(Integer payChannelType) {
		this.payChannelType = payChannelType;
	}

	public Integer getIntegralStatus() {
		return integralStatus;
	}

	public void setIntegralStatus(Integer integralStatus) {
		this.integralStatus = integralStatus;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

    public Integer getCdfVipCodeStatus() {
        return cdfVipCodeStatus;
    }

    public void setCdfVipCodeStatus(Integer cdfVipCodeStatus) {
        this.cdfVipCodeStatus = cdfVipCodeStatus;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mainOrderId=").append(mainOrderId);
        sb.append(", stockStatus=").append(stockStatus);
        sb.append(", couponStatus=").append(couponStatus);
        sb.append(", cardStatus=").append(cardStatus);
        sb.append(", rebateStatus=").append(this.rebateStatus);
        sb.append(", syncStatus=").append(syncStatus);
        sb.append(", payDeductAmount=").append(this.payDeductAmount);
        sb.append(", addTime=").append(addTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", proxyOrderId=").append(this.proxyOrderId);
        sb.append(", userId=").append(this.userId);
        sb.append(", thirdMallOrderId=").append(this.thirdMallOrderId);
        sb.append(", payChannelType=").append(this.payChannelType);
        
        sb.append(", integralStatus=").append(this.integralStatus);
        
        sb.append(", integral=").append(this.integral);
        sb.append(", cdfVipCodeStatus=").append(this.cdfVipCodeStatus);
        sb.append("]");
        return sb.toString();
    }
}